package BanyuanClub.Study.Day0304;

import java.io.FileOutputStream;
import java.io.IOException;

public class TextFileOutputStream {
    public static void main(String[] args) {
        String s = "hello,word";
        //将字符组s输出到Dest.txt中
        try (FileOutputStream fos = new FileOutputStream("Dest.txt")){
            fos.write(s.getBytes());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
